import 'package:flutter/material.dart';

class BigImg extends StatelessWidget {

  String imgsrc;

  @override
  Widget build(BuildContext context) {
    return Card(
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(20.0)),
        side: BorderSide(
          width: 0,
          color: Color.fromARGB(250, 211, 211, 211),
          style: BorderStyle.solid,
        ),
      ),
      elevation: 2,
      margin: EdgeInsets.symmetric(vertical: 10,horizontal: 20),
      child: AspectRatio(
        aspectRatio: 1.0/1.0,
        child: Container(
          decoration: ShapeDecoration(
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(20)
            )
          ),
          child: Image.network(
            'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fgss0.baidu.com%2F-fo3dSag_xI4khGko9WTAnF6hhy%2Fzhidao%2Fwh%253D450%252C600%2Fsign%3Dffcdf4c3c0cec3fd8b6baf71e3b8f809%2F2e2eb9389b504fc293bdb90ae6dde71191ef6dda.jpg&refer=http%3A%2F%2Fgss0.baidu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622515181&t=d509875913695724a8f896755fcec36c',
            width: double.infinity,
            fit: BoxFit.cover,
          ),
        )
      ),
    );
  }
}
